package com.star.basedemo.mapper.first;


import com.star.basedemo.bean.Student;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;


public interface StudentFirstMapper {
    @Select("select * from student")
    List<Student> getAll();
    @Select("select * from student where id = #{id}")
    Student getById(int id);
    @Delete("delete from student where id = #{id}")
    int deleteById(int id);

    int update(Student student);

    int insert(Student student);
}
